package com.bawei.login.api

import com.bawei.network.HttpInterceptorType
import com.bawei.network.HttpManager
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton

@Module
@InstallIn(SingletonComponent::class)
object LoginApiModule {

    @Provides
    @Singleton
    fun getLoginApiServer(): LoginApiServer{
        return HttpManager.createApi(LoginApiServer::class.java, HttpInterceptorType.SIGN)
    }

}